#include "StdAfx.h"
#include "BaseManager.h"

VAMPIRE_NAMESPACE_BEGIN

void BaseManager::addLocation( TString location )
{
	if (location.rfind(L"/") != location.length() - 1)
	{
		location += L"/";
	}
	mLocationList.push_back(location);
}

void BaseManager::release( const TString& name )
{
	ResourceMap::iterator it = mRecMap.find(name);
	mRecMap.erase(it);
	SAFE_DELETE(mRecMap[name]);
}

VAMPIRE_NAMESPACE_END
